//
//  ZCAboutUsViewController.m
//  VoiceMusic
//
//  Created by dllo on 15/10/23.
//  Copyright © 2015年 zhangdeyu. All rights reserved.
//

#import "ZCAboutUsViewController.h"
#import <Masonry.h>
#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height
@interface ZCAboutUsViewController ()

@end

@implementation ZCAboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self creatAboutUsView];
    //返回键
    UIButton *leftButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [leftButton setImage:[UIImage imageNamed:@"iconfont-fanhui"] forState:UIControlStateNormal];
    leftButton.frame = CGRectMake(0, 0, 30, 30);
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:leftButton];
    [leftButton addTarget:self action:@selector(returnClick:) forControlEvents:UIControlEventTouchUpInside];
    
    
}
#pragma mark 返回
- (void)returnClick:(UIBarButtonItem *)button
{
    [self.navigationController popViewControllerAnimated:YES];
}
- (void)creatAboutUsView
{
    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"3187"]];
    
//    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(50, 100, WIDTH - 100, 200)];
//    [self.view addSubview:label];
//    label.numberOfLines = 0;
//    label.textColor = [UIColor purpleColor];
//    label.text = @"    这是一款掌上音乐App,融合了音频,MV.它将为你找到你想要的歌曲,并且它为各类人士,场景提供了很好的分类,让您无论是在学习,还是工作,都能有愉悦的心情,良好的放松";
    
    UIImageView *imageV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"1445910108_904598"]];
    [self.view addSubview:imageV];
    imageV.frame = CGRectMake(50, 130, WIDTH - 100, 200);
    
    
    UILabel *detailLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, HEIGHT - 220, WIDTH - 100, 60)];
    detailLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:detailLabel];
    detailLabel.text = @"VoiceMusic @ 2015 ZZZ";
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
